﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Chitietbaiviet.aspx.cs" Inherits="Trathat.Chitietbaiviet" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<div class="carousel-container">
    <div id="carousel">
        <div class="carousel-feature">
          <a href="#"><img class="carousel-image" alt="Image Caption" src="../images/001.jpg" height="250" width="450"></a>
        </div>
        <div class="carousel-feature">
          <a href="#"><img class="carousel-image" alt="Image Caption" src="../images/002.jpg" width="450" height="249"></a>
        </div>
        <div class="carousel-feature">
          <a href="#"><img class="carousel-image" alt="Image Caption" src="../images/003.jpg" height="249" width="450"></a>
        </div>
        <div class="carousel-feature">
          <a href="#"><img class="carousel-image" alt="Image Caption" src="../images/004.jpg" height="249" width="450"></a>
        </div>
        <div class="carousel-feature">
          <a href="#"><img class="carousel-image" alt="Image Caption" src="../images/005.jpg" height="249" width="450"></a>
        </div>
        <div class="carousel-feature">
          <a href="#"><img class="carousel-image" alt="Image Caption" src="../images/006.jpg" height="249" width="450"></a>
        </div>
      </div>
    
      <div id="carousel-left"><img src="../images/back.png" /></div>
      <div id="carousel-right"><img src="../images/next1.png" /></div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="background-color: #fff; border: thin solid #c5c5c5;border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; width:720px; margin-right:12px; padding-bottom:50px; padding-top:20px;">
        <asp:DataList ID="listChitietbaiviet" runat="server" DataKeyField="ID" RepeatColumns="1" Width="740">
            <ItemTemplate>
                <div style="float:left; width: 690px; padding-left:15px;">
                    <b style="color: #3366FF"><%# Eval("Tenbaiviet") %><br /></b>
                    <div style="color: #C0C0C0"><%# Eval("Ngayviet")%></div><br /><br />
                    <%# Eval("Noidung") %><br /><br />
                    <div style="padding-left:500px; font-weight:bold;"><%# Eval("Nguoiviet") %></div>
                </div>
            </ItemTemplate>
        </asp:DataList>
        <br />
            <div style=" height:30px; background-image: url('../Image/menubg.jpg'); background-repeat: repeat-x; padding-top:10px; font-weight:bold; color:#fff;"><center>Ý kiến của bạn</center> </div><br /><br />
        <table style="padding-left:20px;">
            <tr>
                <td class="labelLienhe">Họ và tên: <b style="color: #FF0000">*</b></td>
                <td>
                    <asp:TextBox ID="txtHoten" runat="server" Width="300" Height="25"></asp:TextBox>
                </td>
            </tr>
            <tr class="validate">
                <td></td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                            ControlToValidate="txtHoten" ErrorMessage="Hãy nhập họ tên" 
                            ValidationGroup="error1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="labelLienhe">Email: <b style="color: #FF0000">*</b></td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server" Width="300" Height="25"></asp:TextBox>
                </td>
            </tr>
            <tr class="validate">
                <td></td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="txtEmail" ErrorMessage="Hãy nhập Email" 
                            ValidationGroup="error1"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                            ControlToValidate="txtEmail" ErrorMessage="Nhập đúng định dạng email" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                            ValidationGroup="error1"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="labelLienhe">Nội dung: <b style="color: #FF0000">*</b></td>
                <td>
                    <asp:TextBox ID="txtNoidung" runat="server" Width="500" Height="150" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr class="validate">
                <td></td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="txtNoidung" ErrorMessage="Hãy nhập nội dung" 
                            ValidationGroup="error1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <asp:Button ID="btnGuiyeucau" runat="server" Text="Gửi" Width="112px" 
                        Height="30px" BackColor="#990000" BorderColor="White" BorderStyle="Solid" 
                        BorderWidth="3" ForeColor="White" ValidationGroup="error1" 
                        onclick="btnGuiyeucau_Click" />
                </td>
            </tr>
        </table>
        <br /><br /><br />
        <div style="border-top:medium solid #c5c5c5; font-weight:bold; margin-left:10px; margin-right:20px; padding-top: 5px;">Các bài viết khác</div><br /><br />
        <asp:DataList ID="listBaivietKhac" runat="server" DataKeyField="ID" RepeatColumns="1" Width="740">
            <ItemTemplate>
                <div style="float:left; width: 690px; padding-left:15px;">
                    <a href="Chitietbaiviet.aspx?ID=<%# Eval("ID") %>" style="color: #0099FF; text-decoration:none;">>>&nbsp;<%# Eval("Tenbaiviet") %>&nbsp;(<%# Eval("Ngayviet", "{0:dd/MM}")%>)</a><br />
                </div>
            </ItemTemplate>
        </asp:DataList>
    </div>
</asp:Content>
